package de.acagamics.roteschlupfmuetze.input;

import com.golden.gamedev.Game;

public class InputManager {

	Game game;
	boolean clicked;
	int mouseX;
	int mouseY;

	public int getMouseX() {
		return mouseX;
	}

	public int getMouseY() {
		return mouseY;
	}

	public InputManager(Game OurGame) {
		game = OurGame;
		clicked = false;
		mouseX = 0;
		mouseY = 0;
	}

	public boolean wasClicked() {
		boolean clickStatus = clicked;
		clicked = false;
		return clickStatus;
	}

	public void update() {
		if (game.click()) {
			clicked = true;
			mouseX = game.getMouseX();
			mouseY = game.getMouseY();
	//		System.out.println("click");
		}
	}

}
